id/email
password
forgot password
|
create account
about
|
help
|
prefs
ReadingBat
code reading practice
Java
Python
Kotlin
Lambda Intro
→
NoArgLambda2
val constVal: () -> Int = { 4 } fun funcNoArg2(i: Int): Int = i * constVal.invoke() fun main() { println(funcNoArg2(5)) println(funcNoArg2(10)) println(funcNoArg2(20)) }
Click on
to run the code
⬅ Back